<!--{*


Created on: 2011-12-11 08:59:08 131
*}-->

<style type="text/css">
.data-editor td.attribute { text-align:right; }
</style>

<div class="top-action">
	<ul class="links">
		<li class="record-list"><a href="images-list.php">List Images</a></li>
	</ul>
</div>
<div class="form-wrap">
<form id="images-edit-form" name="images-edit-form" method="post" action="images-edit.php" enctype="multipart/form-data">
  <table class="data-editor">
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Dimension Width: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[dimension_width]" value="{$images.dimension_width|utf8}" class="input" id="images-dimension_width" />
			<span class="form-hints">Original pixels width</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Dimension Height: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[dimension_height]" value="{$images.dimension_height|utf8}" class="input" id="images-dimension_height" />
			<span class="form-hints">Original pixels height</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Filesize Bytes: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[filesize_bytes]" value="{$images.filesize_bytes|utf8}" class="input" id="images-filesize_bytes" />
			<span class="form-hints">Filesize in bytes</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Image Code: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[image_code]" value="{$images.image_code|utf8}" class="input" id="images-image_code" />
			<span class="form-hints">Unique image code</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Image Name: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[image_name]" value="{$images.image_name|utf8}" class="input" id="images-image_name" />
			<span class="form-hints">Image name as title</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Image Caption: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[image_caption]" value="{$images.image_caption|utf8}" class="input" id="images-image_caption" />
			<span class="form-hints">Caption text</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Image Keywords: <span class="required">*</span></td>
		<td>
			<input type="text" name="images[image_keywords]" value="{$images.image_keywords|utf8}" class="input" id="images-image_keywords" />
			<span class="form-hints">Related keywords and tags separated by comma</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
      <td class="attribute">
	  <p>Short Description : <span class="required">*</span></p>
	  <p><a href="image/{'THUMBNAIL_DETAILS_SIZE_ID'|constant}/{$images.image_id}.jpg" target="_blank"><img src="image/{'THUMBNAIL_HOMEPAGE_SIZE_ID'|constant}/{$images.image_id}.jpg" alt="" title="" /></a></p>
	  </td>
	  <td class="value"><div>
	    <textarea rows="5" cols="75" name="images[image_description_short]" class="editor" id="images-image_description_short">{$images.image_description_short|utf8}</textarea>
	    </div>
	      <p><span class="form-hints">Full description</span></p></td>
	  </tr>
	<tr class="{cycle values='A,B'}">
		<td class="attribute"><a target="_blank" href="images-details.php?id={$images.image_id}&amp;code={$images.code}">Cropping</a> | Image Description: <span class="required">*</span></td>
		<td class="value">
			<div><textarea rows="5" cols="75" name="images[image_description]" class="editor" id="images-image_description">{$images.image_description|utf8}</textarea></div>
			<p><span class="form-hints">Full description</span></p>		</td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="image_id" value="{$images.image_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$images.code}" />
		<input type="hidden" name="edit-action" value="Edit Images" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		<a href="{url::last_page('images-list.php')}" class="button-cancel">Cancel</a>	  </td>
    </tr>
  </table>
</form>
</div>
<!-- End of administrators Edit -->

<div>{include file='images/details-edit-form.php'}</div>

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/images/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of images Edit -->